package com.mpsc.sharding.controller;


import com.mpsc.api.bean.StatueEntity;
import com.mpsc.sharding.service.StatueService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/statue")
@Api(value = "StatueController", tags = "状态管理")
public class StatueController {

    @Autowired
    private StatueService statueService;

    @PostMapping("/saveStatue")
    @ApiOperation("保存状态信息")
    public void saveStatue(@RequestBody StatueEntity statue){
        statueService.saveStatue(statue);
    }
}
